/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Joel
 */
@Entity
@Table(name = "FUNCIONARIOS_ARMAZEM")
@NamedQuery(name = "findAllFuncionariosArmazem", query = "SELECT f FROM FuncionarioArmazem f")


public class FuncionarioArmazem extends Utilizador implements Serializable {

    @ManyToOne

    private Armazem armazem;
    
    public FuncionarioArmazem(String username, String nome, String email, String morada, String password, String tipo, Armazem armazem) {
        super(username, nome, email,morada, password, tipo);
        this.armazem = armazem;
    }

    public FuncionarioArmazem() {
    }

    public Armazem getArmazem() {
        return armazem;
    }

    public void setArmazem(Armazem armazem) {
        this.armazem = armazem;
    }
   
 
 
    
}
